import pandas
from sqlalchemy import create_engine
from conf.config import ClassFicationCode,DatabaseUser,DPassword,DIP,Port,DB_NAME,DB_chrset
def ToMysql():
    NCSV=pandas.read_csv('./DATA/{0}result.csv'.format(ClassFicationCode),header=0,index_col=False)
    connect=create_engine('mysql+pymysql://{0}:{1}@{2}:{3}/{4}?charset-{5}'.format(DatabaseUser,DPassword,DIP,Port,DB_NAME,DB_chrset))

    NCSV.to_sql(ClassFicationCode,connect,if_exists='replace',index=False,index_label=True)